{% load comment pagination%}
<script type="text/javascript" src="/static/js/comment-reply.js"></script>
{% get_comment_form for object as commentform %}
	<h3 id="comments">{{entry.comments.count}} Responses to "{{entry.title}}"</h3>

	{% get_threaded_comment_list for object %}

	{% if not entry.allow_comment %}
		<p class="nocomments">Comments are closed.</p>
	{%endif%}


{% if entry.allow_comment %}
<div id="respond">
<h3>Leave a Reply</h3>
<div id="cancel-comment-reply">
		<small><a rel="nofollow" id="cancel-comment-reply-link" href="#respond" style="display:none;">点击这里取消回复</a></small>
	</div>
<form action="/postcomment" method="post" id="commentform">
	<p>{{commentform.author}}
	<label for="author">Name <b style='color:red'>*</b></label></p>
	
	<p>{{commentform.email}}
	<label for="email">Mail (will not be published) <b style='color:red'>*</b></label></p>
	
	<p>{{commentform.url}}
	<label for="url">Website</label></p>
	<p><input id="safecode" type="text" name="safecode"/>
	<label for="safecode">验证码 <b style='color:red'>*</b><img onclick="this.setAttribute('src','/image_code')" src="/image_code" alt="CheckCode"/></label>
	</p>
	<p>{% include "themes/default/smily.html" %}</p>
	
	<p><textarea name="content" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
	
	{{ commentform.content_type }}
	 {{ commentform.object_pk }}
	 {{ commentform.parent_id }}
	
	<p>
	<input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
	<input type="checkbox" name="mail_notify" style="width: auto;margin-left:10px;" checked="checked"/>
    <label for="mail_notify">有回复时邮件通知我</label>
	</p>
</form>
</div>
{%endif%}
